package com.example.demo.module.convert;

import com.example.demo.module.dto.UserDTO;
import com.example.demo.module.entity.User;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface UserConvert extends BaseMapper<UserDTO, User> {
    UserConvert INSTANCE = Mappers.getMapper(UserConvert.class);

    UserDTO toDto(User user);
    User toEntity(UserDTO userDTO);
}

